package com.emeraldparser.parse;

import com.google.common.collect.Iterables;

public class Driver<S> {

	private final Parser<S> parser;

	public Driver(Parser<S> parser) {
		this.parser = parser;
	}

	protected S getStartState() {
		return Iterables.getOnlyElement(parser.automaton().getStartVertices());
	}

	public void drive() {
		S startState = getStartState();
		
		
	}

}
